﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cemit.PolyServer
{
    public static class TypeSelectExtensions
    {
        public static bool IsGenericInterface(this Type type, Type genericInterfaceType)
        {
            return type.IsGenericType
                    && type.GetGenericTypeDefinition() == genericInterfaceType;
        }
    }
}
